package models

import "tuowei.com/common/models"

type SysProvince struct {
	models.Model
	Name     string `gorm:"type:varchar(32);not null;comment:省名"`
	ParentId int    `gorm:"type:int(10);not null;default 0;comment:父级id,拓展字段，万一以后要拓展呢"`
}

func (p SysProvince) TableName() string {
	return "sys_province"
}

type SysProvinceList struct {
	Name string `json:"name"`
}
